package com.lmds.sprindemo1.bean.life;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * Created with IntelliJ IDEA.
 * User: mgm
 * Date: 2019-07-24
 * Time: 11:51
 */

@Configuration
@ComponentScan("com.lmds.sprindemo1.bean.life")
public class LifeConfig {

    @Bean(initMethod = "init",destroyMethod = "destory")
    LifeTestBean lifeTestBean (){
        return new LifeTestBean();
    }
}
